package com.awphone.data.constant;

import com.awphone.utils.json.IJsonObject;
import com.google.gson.JsonObject;

/**
 * @author a_polyakov
 * Набор доступных типов обектов в приложении
 */
public enum EObjectType implements IJsonObject {
    COUNTRY,
    STATE,
    CITY,
    STREET,
    COMPANY,
    NPA,
    NXX,
    PHONE,
    USER,
    COMMENT,
    COMMENT_VOTES,
    ENTRY_HISTORY;

    @Override
    public JsonObject toJsonObject() {
        JsonObject jsonObject = new JsonObject();
        jsonObject.addProperty("name", name());
        return jsonObject;
    }
}
